// 引入封装的js文件
import Fetch from "../utils/fetch"
// import Request from "../utils/request"

// 统一接口文件配置


// 首页轮播图接口    axios实现
// export const banner = () => Request({
//     url: "/api/banner",
//     headers: {
//         DeviceType: "H5"
//     }
// })

// // 首页轮播图接口    fetch实现
// export const banner = () => Fetch.get("/banner")



// 使用Request请求接口：
// export const teacherInfo = (data) => Request({
//     url: `/api/teacher/info/${data}`,
//     method: "GET",
//     data: data
// })


// 使用Fetch请求接口

// 首页轮播图接口 
export const banners = () => Fetch.get("/banner")
// 首页资深讲师
export const tearchs=()=>Fetch.get('/recommend/appIndex')
//登录接口
export const Login = (data) => Fetch.post('/api/app/login', data)
// 讲师详情
export const teacher=(data)=>Fetch.get(`/teacher/${data}`)
// 讲师简介
export const teachers=(data)=>Fetch.get(`teacher/info/${data}`)
// 讲师简介
export const teacherclass=(data)=>Fetch.get(`teacher/course/${data}`)
// 课程详情
export const ClassDetail=(data)=>Fetch.get(`/courseInfo/basis_id=${data}`)
// 特色课详情
export const courseList=()=>Fetch.get(`/courseBasis`)
// 特色课导航
export const courseTop=()=>Fetch.get(`/courseClassify`)
// 课程列表,排序，筛选
export const courseLists=(data)=>Fetch.get('/courseBasis',data)
// 发送验证码
export const smsode=(data)=>Fetch.post('/smsCode',data)
//验证码登录
export const yzLogin = (data) => Fetch.post("/login",data)
// 个人信息
export const xinxis = () => Fetch.get('/userInfo')
// 数量
export const num = (data) => Fetch.get('/getUCenterInfo', data)
// 修改密码
export const passwords = (data) => Fetch.post('/password', data)
// 修改个人信息
export const users = (data) => Fetch.put('/user', data)
// 修改头像
export const imgs = (data) => Fetch.post('/public/img', data)
// 题库选择
export const change = (data) => Fetch.get('wap/classify', data)
export const changeId = (data) => Fetch.get(`wap/quesBank/${data}`)
// 题库搜索
export const changess = (data) => Fetch.get(`wap/search/bank?bank=${data}`)
// 套卷练习
export const liexi = (data) => Fetch.get('exam/classify', data)
// 我的关注列表
export const guanye=(data)=>Fetch.get(`/collect`,data)
// 我的收藏列表
export const shou=(data)=>Fetch.post(`/collect`,data)
export const shx=(data)=>Fetch.put(`/collect/cancel/${data}/1`)
// 我的关注列表
export const myOrder=(data)=>Fetch.post(`/myOrder`,data)
// 讲师关注
export const collect=(data)=>Fetch.get(`/teacher/collect/${data}`)
export const liexis = (data) => Fetch.get(`exam/packagePractice?${data}`)


export const mytsk = () => Fetch.get(`/myStudy/2`)

export const GetDate = (date) => Fetch.get(`/study/live/${date}`)

    
export const GetYear = (date) => Fetch.get(`/study/schedule?date=${date}`)
    
